Alert button works in text editor but it wont work when deployed to static website in s3